<?php
namespace Home\Model;
use Think\Model;
use Think\Model\RelationModel;
class PostModel extends RelationModel {
protected $_link = array(
'get_user_info'=>array(
            'mapping_type'      => self::BELONGS_TO,
            'class_name'        => 'users',
            'foreign_key'   => 'uid',
            'as_fields' => 'uname,uphonenumber,uphoto',	
            ),
);


}
